package org.zcl.entity.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

/**
 * @author zhuchenglin
 * @since 2022/9/5 10:19
 */
public class BasePO {
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeleted() {
        return deleted;
    }

    public void setDeleted(Long deleted) {
        this.deleted = deleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return update_time;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.update_time = updateTime;
    }

    @TableLogic
    private Long deleted;
    @TableField(value = "create_time",
            fill = FieldFill.INSERT
    )
    private LocalDateTime createTime;
    @TableField(value = "update_time",
            fill = FieldFill.UPDATE
    )
    private LocalDateTime update_time;
}
